<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*" %>
    <%@ page import="model.*" %>
<section>
	<div class="row">
		<div class="col-md-6 col-md-offset-3">
			<ul class="list-group">
			<%	
				String checkValue =  (String)request.getAttribute("checkValue");
				if(checkValue==null){
					%>
					<script>
						location.href="/QueStudy/List.Study";
					</script>
					<%
					
				}
				else {
					ArrayList<Study> list = (ArrayList<Study>)request.getAttribute("studyList");
					if(list != null) {
						for(Study study  : list) {
							
				%>
							<li class="list-group-item">
							 	<!-- <a href="Info.Study?studyId=<%= study.getStudyid() %>">
							 		
						 		</a> -->
						 		<div class="panel-body" onclick="showDetailStudy(<%= study.getStudyid() %>)">
						 			<div class="row">
						 				<div class="col-xs-4"><small><%=study.getCategory() %></small></div>
						 				<div class="col-xs-8"><small>스터디장 : <%=study.getMemid() %></small></div>
						 			</div>
					 				<div class=""><p class="text-primary">스터디 이름 : <%= study.getTitle() %></p></div>
						 		</div>
						 	</li>
				<%
						}
					} 
				}
			%>
			</ul>
			<form id="studyInfo" name="studyForm" method="get" action="Info.Study">
				<input type="hidden" name="studyId" id="studyId" value="" />
			</form>			
		</div>
	</div>
</section>
